package com.classtwo.colleage.conf;

import com.classtwo.colleage.model.User_class;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * 连接Student表与数据库
 */
public interface DatabaseUser_classInfo extends JpaRepository<User_class,Integer>{


    List<User_class> findByUsername(String username);


    User_class findFirstByClassnode(String classnode);


    User_class findFirstByClassnodeAndUsertype(String classnode,String usertype);


    List<User_class> findAllByClassnode(String classnode);


    User_class findByClassnodeAndUsertype(String classnode, String usertype);


    List<User_class>findAllByUsertypeAndClassnode(String usertype, String classnode);


    List<User_class> findByUsertype(String usertype);


    User_class findByUsernameAndClassnode(String username, String classnode);
}
